home *** CD-ROM | disk | FTP | other *** search
/ PC World 2006 July & August / PCWorld_2006-07-08_cd.bin / v cisle / acehtml / acehtmlfreeware.exe / scriptdef / Slide-In Menu Bar.sd < prev    next >
INI File  |  2004-06-28  |  3KB  |  142 lines

  1. [SUBJECT]
  2. Description=Slide-In menu bar Script
  3. ImageIndex=-1
  4. Folder=Menus
  5.  
  6.  
  7. [HEAD_TEXT]
  8. ;
  9. ;<style>
  10. ;<!--
  11. ;
  12. ;#slidemenubar, #slidemenubar2{
  13. ;position:absolute;
  14. ;left:-155px;
  15. ;width:160px;
  16. ;top:170px;
  17. ;border:1.5px solid green;
  18. ;background-color:lightyellow;
  19. ;layer-background-color:lightyellow;
  20. ;font:bold 12px Verdana;
  21. ;line-height:20px;
  22. ;}
  23. ;-->
  24. ;</style>
  25. ;
  26.  
  27.  
  28. [BODY_TEXT]
  29. ;
  30. ;<script language="JavaScript1.2">
  31. ;
  32. ;/*
  33. ;Sliding Menu Bar Script-
  34. ;⌐ Dynamic Drive (www.dynamicdrive.com)
  35. ;For full source code, installation instructions,
  36. ;100's more DHTML scripts, and Terms Of
  37. ;Use, visit dynamicdrive.com
  38. ;*/
  39. ;
  40. ;if (document.all)
  41. ;document.write('<div id="slidemenubar2" style="left:-150" onMouseover="pull()" onMouseout="draw()">');
  42. ;</script>
  43. ;<layer id="slidemenubar" onMouseover="pull()" onMouseout="draw()">
  44. ;<script language="JavaScript1.2">
  45. ;var sitems=new Array();
  46. ;var sitemlinks=new Array();
  47. ;
  48. ;//extend or shorten this list
  49. ;sitems[0]="`caption0`";
  50. ;sitemlinks[0]="`link0`";
  51. ;
  52. #macro text insert point
  53. ;
  54. ;
  55. ;for (i=0;i<=sitems.length-1;i++)
  56. ;document.write('<a href='+sitemlinks[i]+'>'+sitems[i]+'</a><br>');
  57. ;</script>
  58. ;</layer>
  59. ;<script language="JavaScript1.2">
  60. ;function regenerate(){
  61. ;window.location.reload();
  62. ;}
  63. ;function regenerate2(){
  64. ;if (document.layers)
  65. ;setTimeout("window.onresize=regenerate",400);
  66. ;}
  67. ;window.onload=regenerate2;
  68. ;if (document.all){
  69. ;document.write('</div>');
  70. ;themenu=document.all.slidemenubar2.style;
  71. ;rightboundary=0;
  72. ;leftboundary=-150;
  73. ;}
  74. ;else{
  75. ;themenu=document.layers.slidemenubar;
  76. ;rightboundary=150;
  77. ;leftboundary=10;
  78. ;}
  79. ;function pull(){
  80. ;if (window.drawit)
  81. ;clearInterval(drawit);
  82. ;pullit=setInterval("pullengine()",50);
  83. ;}
  84. ;function draw(){
  85. ;clearInterval(pullit);
  86. ;drawit=setInterval("drawengine()",50);
  87. ;}
  88. ;function pullengine(){
  89. ;if (document.all&&themenu.pixelLeft<rightboundary)
  90. ;themenu.pixelLeft+=5;
  91. ;else if(document.layers&&themenu.left<rightboundary)
  92. ;themenu.left+=5;
  93. ;else if (window.pullit)
  94. ;clearInterval(pullit);
  95. ;}
  96. ;function drawengine(){
  97. ;if (document.all&&themenu.pixelLeft>leftboundary)
  98. ;themenu.pixelLeft-=5;
  99. ;else if(document.layers&&themenu.left>leftboundary)
  100. ;themenu.left-=5;
  101. ;else if (window.drawit);
  102. ;clearInterval(drawit);
  103. ;}
  104. ;</script>
  105. ;
  106.  
  107.  
  108. [MACRO_ITEM]
  109. ;sitems[`caption_index`]="`caption`"
  110. ;sitemlinks[`link_index`]="`link`"
  111. ;
  112.  
  113.  
  114. [`caption_index`]
  115. Visible=0
  116.  
  117.  
  118. [`link_index`]
  119. Visible=0
  120.  
  121.  
  122. [`caption`]
  123. Kind=S
  124. Value=Menu item caption
  125.  
  126.  
  127. [`caption0`]
  128. Kind=S
  129. Value=Menu item caption0
  130.  
  131.  
  132.  
  133. [`link`]
  134. Kind=U
  135. Value=Test.htm
  136.  
  137.  
  138. [`link0`]
  139. Kind=U
  140. Value=Test0.htm
  141.  
  142.